import Vue from 'vue'
import VueI18n from 'vue-i18n'
import element_zh from 'element-ui/lib/locale/lang/zh-CN'
import element_en from 'element-ui/lib/locale/lang/en'
import cookie from 'js-cookie'
import _zh from './zh'
import _en from './en'

Vue.use(VueI18n)

const messages = {
  zh: {
    ding:'丁卓',
    ..._zh,
    ...element_zh
  },
  en: {
    ding:'XDD',
    ..._en,
    ...element_en
  }
}

export default new VueI18n({
  locale: cookie.get('locale') || 'zh',
  messages
})
